home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1996 #5
/
Amiga Plus CD - 1996 - No. 5.iso
/
pd
/
grafik
/
picview20
/
rexx
/
testexists.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1996-03-31
|
550b
|
35 lines
/* TestExists.Rexx
Test if every thumbnail has its picture file... and deletes thumbnails
with no picture file... (e.g. if you deleted pictures outside of
PicView...)
(W) by Martin Steigerwald, 19.3.96
V1.0 30.3.96
*/
OPTIONS RESULTS
ADDRESS PicView.1
GETENTRIES
bildanzahl=result
bildnr=0
DO WHILE bildnr<=bildanzahl-1
GETPICDATA bildnr FILE
datei=result
IF ~EXISTS(datei) THEN DO
say bildnr || ' ' || datei
REMOVEPIC bildnr FORCE
bildanzahl=bildanzahl - 1
END ; ELSE DO
bildnr=bildnr + 1
END
END